#! /usr/bin/env bash
myHERE=$(cd "$(dirname "$0")";pwd)
source "$myHERE/global_build_OSX.command"
mySetupBUILDDIR icu
cd "$myBUILDDIR"
myDEFINES="-DU_USING_ICU_NAMESPACE=0 -DU_CHARSET_IS_UTF8=1 -DUNISTR_FROM_CHAR_EXPLICIT=explicit -DUNISTR_FROM_STRING_EXPLICIT=explicit -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1"
export CFLAGS="$myCFLAGS $myDEFINES"
export CXXFLAGS="$myCXXFLAGS $myDEFINES"
export LDFLAGS="$myLDFLAGS"
"$myHERE/icu/source/runConfigureICU" \
MacOSX \
--enable-static \
--disable-shared \
--prefix="$my3RDINSTALLDIR" \

gnumake
gnumake install
exit

#-DU_USING_ICU_NAMESPACE=0
#-DU_CHARSET_IS_UTF8=1
#-DUNISTR_FROM_CHAR_EXPLICIT=explicit
#-DUNISTR_FROM_STRING_EXPLICIT=explicit
#-DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1

runConfigureICU Linux --enable-static --disable-shared
"$myHERE../../icu/runConfigureICU" Linux
~/icu/trunk-dev$ make check
CXXFLAGS=xyz path/to/runConfigureICU --enable-debug 
MacOSX